import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
//入口文件，引入router
import router from './router'//找到当前页面//把router挂载在vue实例上
import store  from './store'

import * as ElementPlusIconsVue from '@element-plus/icons-vue'

//创建的实例
const app = createApp(App)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}


//路由挂载
app.use(router)
//store挂载
app.use(store)
app.mount('#app')

//配置对应显示的出口
//找到需要显示路由的位置